import request from '@/utils/request'

/**
 * 服务名称
 */
const serviceName = '/basedata'

export function page(data) {
  return request({
    url: `${serviceName}/menu/tree`,
    method: 'get',
    params: data
  })
}

export function create(data) {
  return request({
    url: `${serviceName}/menu/create`,
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: `${serviceName}/menu/update`,
    method: 'post',
    data
  })
}

export function saveBtn(data) {
  return request({
    url: `${serviceName}/button/save`,
    method: 'post',
    data
  })
}

export function setStatus(data) {
  return request({
    url: `${serviceName}/menu/status`,
    method: 'post',
    data
  })
}
